package com.milotnt.service;

import com.milotnt.pojo.DeviceEntity;

import java.util.List;

public interface DeviceService {

    //查询所有器械
    List<DeviceEntity> findAll();

    //根据 id 删除器械
    Boolean deleteByDeviceId(Long deviceId);

    //添加器材
    Boolean insertDevice(DeviceEntity device);

    //根据 id 修改器械信息
    Boolean updateDeviceByDeviceId(DeviceEntity device);

    //根据 id 查询器械
    List<DeviceEntity> selectByDeviceId(Long deviceId);

    //查询器械总数
    Integer selectTotalCount();

}
